//
//  TicketTableCell.m
//  LocalTravel
//
//  Created by zheng ji on 14-3-20.
//  Copyright (c) 2014年 jxw. All rights reserved.
//

#import "TicketTableCell.h"

@implementation TicketTableCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 初始化时加载collectionCell.xib文件
        
        NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"TicketTableCell" owner:self options: nil];
        
        // 如果路径不存在，return nil
        
        if(arrayOfViews.count < 1){return nil;}
        
        // 如果xib中view不属于TicketTableCell类，return nil
        
        if(![[arrayOfViews objectAtIndex:0] isKindOfClass:[TicketTableCell class]]){
            
            return nil;
            
        }
        
        self = [arrayOfViews objectAtIndex:0];
    }
    self.lblPayMode.textColor=[UIColor whiteColor];
    self.lblPayMode.backgroundColor=RGB(210,105,30);
    
    //self.lblPrice.textColor=RGB(192,192,192);
    self.lblTCPrice.textColor=RGB(255,165,0);
    
    
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
